package org.xmatch.agenda.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;
import org.xmatch.framework.entity.GenericEntity;

@Entity
public class Telefone extends GenericEntity {

	private static final long serialVersionUID = -1955438901997715316L;

	@Column(name = "NUMERO")
	@NotNull
	@Length(max = 10)
	private String numero;

	@Column(name = "CODE")
	@NotNull
	private Long code;

	public String getNumero() {
		return numero;
	}

	public void setNumero(String numero) {
		this.numero = numero;
	}

	public Long getCode() {
		return code;
	}

	public void setCode(Long code) {
		this.code = code;
	}

}
